using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.IO;
using System.IO.IsolatedStorage;
using System.Xml;
using System.Xml.Serialization;

namespace SharePointSearchBench
{
    /// <summary>
    /// Represents a saved session file.
    /// </summary>
    [Serializable]
    public class RecentFile
    {

        string name;
        string path;
        DateTime usageDate;

        /// <summary>
        /// Creates a new instance of the class.
        /// </summary>
        public RecentFile()
        {
            this.name = string.Empty;
            this.path = string.Empty;
            this.usageDate = DateTime.MinValue;
        }

        /// <summary>
        /// Creates a new instance of the class with specified values.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="path"></param>
        /// <param name="usageDate"></param>
        public RecentFile(string name, string path, DateTime usageDate)
        {
            this.name = name;
            this.path = path;
            this.usageDate = usageDate;
        }

        /// <summary>
        /// Gets or sets the file name.
        /// </summary>
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        /// <summary>
        /// Gets or sets the file's full path.
        /// </summary>
        public string Path
        {
            get { return this.path; }
            set { this.path = value; }
        }

        /// <summary>
        /// Gets or sets the date and time that the file was used.
        /// </summary>
        public DateTime UsageDate
        {
            get { return this.usageDate; }
            set { this.usageDate = value; }
        }

    }
}
